import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home')
  },
  {
    path: '/hot_rooms',
    name: 'hot_rooms',
    component: () => import('@/views/hot_rooms/index')
  }, {
    path: '/my_songs',
    name: 'my_songs',
    component: () => import('@/views/my_songs/index')
  }, {
    path: '/playing_songs',
    name: 'playing_songs',
    component: () => import('@/views/playing_songs/index')
  }, {
    path: '/search_songs',
    name: 'search_songs',
    component: () => import('@/views/search_songs/index')
  }, {
    path: '/system_setting',
    name: 'system_setting',
    component: () => import('@/views/system_setting/index')
  }, {
    path: '/room_setting',
    name: 'room_setting',
    component: () => import('@/views/room_setting/index')
  }
]

const router = new VueRouter({
  routes
})

export default router